.class Lcom/example/inshopbuy/InShopBuyOrders$2;
.super Ljava/lang/Object;
.source "InShopBuyOrders.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/inshopbuy/InShopBuyOrders;->getHttpOrdersData()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/inshopbuy/InShopBuyOrders;


# direct methods
.method constructor <init>(Lcom/example/inshopbuy/InShopBuyOrders;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    .line 111
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 15

    .prologue
    .line 115
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->context:Landroid/content/Context;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$1(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/content/Context;

    move-result-object v12

    const-string v13, "userInfo"

    const/4 v14, 0x0

    invoke-virtual {v12, v13, v14}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v8

    .line 116
    .local v8, "sPreferences":Landroid/content/SharedPreferences;
    const-string v12, "uid"

    const-string v13, ""

    invoke-interface {v8, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 117
    .local v10, "uid":Ljava/lang/String;
    const-string v12, "pass"

    const-string v13, ""

    invoke-interface {v8, v12, v13}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 119
    .local v7, "pwd":Ljava/lang/String;
    new-instance v12, Ljava/lang/StringBuilder;

    iget-object v13, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->m:Lmyapp/MyApp;
    invoke-static {v13}, Lcom/example/inshopbuy/InShopBuyOrders;->access$11(Lcom/example/inshopbuy/InShopBuyOrders;)Lmyapp/MyApp;

    move-result-object v13

    invoke-virtual {v13}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v13

    invoke-static {v13}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v13

    invoke-direct {v12, v13}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v13, "/index.php?ctrl=app&action=useryhorderlist&datatype=json&startday="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 120
    const-string v13, "&uid="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&pwd="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    invoke-virtual {v12, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&page="

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    iget-object v13, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->page:I
    invoke-static {v13}, Lcom/example/inshopbuy/InShopBuyOrders;->access$9(Lcom/example/inshopbuy/InShopBuyOrders;)I

    move-result v13

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v12

    const-string v13, "&datatype=json"

    invoke-virtual {v12, v13}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v12

    .line 119
    invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    .line 121
    .local v11, "url":Ljava/lang/String;
    const-string v12, "getHttpOrdersData-----------"

    invoke-static {v12, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 122
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->m:Lmyapp/MyApp;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$11(Lcom/example/inshopbuy/InShopBuyOrders;)Lmyapp/MyApp;

    move-result-object v12

    invoke-static {v11, v12}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v9

    .line 126
    .local v9, "str":Ljava/lang/String;
    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v9}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 128
    .local v5, "object":Lorg/json/JSONObject;
    const-string v12, "error"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    const-string v13, "true"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 129
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 130
    .local v4, "message":Landroid/os/Message;
    const/4 v12, 0x1

    iput v12, v4, Landroid/os/Message;->arg1:I

    .line 131
    const-string v12, "msg"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 132
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$6(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 176
    .end local v5    # "object":Lorg/json/JSONObject;
    :goto_0
    return-void

    .line 136
    .end local v4    # "message":Landroid/os/Message;
    .restart local v5    # "object":Lorg/json/JSONObject;
    :cond_0
    const-string v12, "msg"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v12

    if-eqz v12, :cond_1

    .line 137
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 138
    .restart local v4    # "message":Landroid/os/Message;
    const/4 v12, 0x2

    iput v12, v4, Landroid/os/Message;->arg1:I

    .line 139
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$6(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 142
    .end local v4    # "message":Landroid/os/Message;
    :cond_1
    const-string v12, "msg"

    invoke-virtual {v5, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    .line 143
    .local v0, "array":Lorg/json/JSONArray;
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_1
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v3, v12, :cond_2

    .line 165
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 166
    .restart local v4    # "message":Landroid/os/Message;
    const/4 v12, 0x4

    iput v12, v4, Landroid/os/Message;->arg1:I

    .line 167
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$6(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 169
    .end local v0    # "array":Lorg/json/JSONArray;
    .end local v3    # "i":I
    .end local v4    # "message":Landroid/os/Message;
    .end local v5    # "object":Lorg/json/JSONObject;
    :catch_0
    move-exception v2

    .line 170
    .local v2, "e":Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    .line 171
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 172
    .restart local v4    # "message":Landroid/os/Message;
    const/4 v12, 0x3

    iput v12, v4, Landroid/os/Message;->arg1:I

    .line 173
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$6(Lcom/example/inshopbuy/InShopBuyOrders;)Landroid/os/Handler;

    move-result-object v12

    invoke-virtual {v12, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0

    .line 146
    .end local v2    # "e":Lorg/json/JSONException;
    .end local v4    # "message":Landroid/os/Message;
    .restart local v0    # "array":Lorg/json/JSONArray;
    .restart local v3    # "i":I
    .restart local v5    # "object":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    invoke-virtual {v0, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v6

    .line 147
    .local v6, "object2":Lorg/json/JSONObject;
    new-instance v1, Lcom/example/inshopbuy/InShopOrdersBean;

    invoke-direct {v1}, Lcom/example/inshopbuy/InShopOrdersBean;-><init>()V

    .line 148
    .local v1, "bean":Lcom/example/inshopbuy/InShopOrdersBean;
    const-string v12, "addtime"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setAddtime(Ljava/lang/String;)V

    .line 149
    const-string v12, "dno"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setDno(Ljava/lang/String;)V

    .line 150
    const-string v12, "huiname"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setHuiname(Ljava/lang/String;)V

    .line 151
    const-string v12, "paystatus"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setPaystatus(Ljava/lang/String;)V

    .line 152
    const-string v12, "paytype"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setPaytype(Ljava/lang/String;)V

    .line 153
    const-string v12, "shopid"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setShopid(Ljava/lang/String;)V

    .line 154
    const-string v12, "shopname"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setShopname(Ljava/lang/String;)V

    .line 155
    const-string v12, "sjcost"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setSjcost(Ljava/lang/String;)V

    .line 156
    const-string v12, "xfcost"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setXfcost(Ljava/lang/String;)V

    .line 157
    const-string v12, "shoplogo"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setShoplogo(Ljava/lang/String;)V

    .line 158
    const-string v12, "id"

    invoke-virtual {v6, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v1, v12}, Lcom/example/inshopbuy/InShopOrdersBean;->setId(Ljava/lang/String;)V

    .line 160
    const-string v12, "paytype-----"

    invoke-virtual {v1}, Lcom/example/inshopbuy/InShopOrdersBean;->getPaytype()Ljava/lang/String;

    move-result-object v13

    invoke-static {v12, v13}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 161
    iget-object v12, p0, Lcom/example/inshopbuy/InShopBuyOrders$2;->this$0:Lcom/example/inshopbuy/InShopBuyOrders;

    # getter for: Lcom/example/inshopbuy/InShopBuyOrders;->beans:Ljava/util/List;
    invoke-static {v12}, Lcom/example/inshopbuy/InShopBuyOrders;->access$7(Lcom/example/inshopbuy/InShopBuyOrders;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 143
    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_1
.end method
